from selenium import webdriver
from selenium.webdriver.firefox.options import Options
def login():
	driver = webdriver.Firefox()
	driver.get(r'http://127.0.0.1:8080/oa/')
	driver.implicitly_wait(5)
	driver.find_element('name', 'loginId').send_keys('admin')
	driver.find_element('name', 'password').send_keys('sys123456')
	driver.find_element('id', 'button_submit').click()
	return driver

if __name__ == '__main__':
   login()






